<?php
namespace app\index\controller;
use app\index\controller\Base;
use \think\Db;

class mobile extends Base
{
	/**
	 * 首页
	 */
    public function index()
    {
    	if ($this->request->isAjax()){
    		
    		$page = input('page');
    		$data[] = array(
    				"title"=>"Apple 苹果 iPhone 6s Plus (A1699) 16G 玫瑰金色 移动联通电信4G 全网通手机",
    				"pic"=>"http://d8.yihaodianimg.com/N05/M03/D4/1E/CgQI0lYEBwWAQIvJAAFyostaOYY12501_80x80.jpg",
    				"link"=>"#1",
    				"date"=>"2015-12-01"
    			);
    		
    		$data[] = array(
    				"title"=>"Apple 苹果 iPhone 6s Plus (A1699) 16G 玫瑰金色 移动联通电信4G 全网通手机",
    				"pic"=>"http://d8.yihaodianimg.com/N05/M03/D4/1E/CgQI0lYEBwWAQIvJAAFyostaOYY12501_80x80.jpg",
    				"link"=>"#1",
    				"date"=>"2015-12-01"
    			);
    		
    		$data[] = array(
    				"title"=>"Apple 苹果 iPhone 6s Plus (A1699) 16G 玫瑰金色 移动联通电信4G 全网通手机",
    				"pic"=>"http://d8.yihaodianimg.com/N05/M03/D4/1E/CgQI0lYEBwWAQIvJAAFyostaOYY12501_80x80.jpg",
    				"link"=>"#1",
    				"date"=>"2015-12-01"
    			);
    		
    		$data[] = array(
    				"title"=>"Apple 苹果 iPhone 6s Plus (A1699) 16G 玫瑰金色 移动联通电信4G 全网通手机",
    				"pic"=>"http://d8.yihaodianimg.com/N05/M03/D4/1E/CgQI0lYEBwWAQIvJAAFyostaOYY12501_80x80.jpg",
    				"link"=>"#1",
    				"date"=>"2015-12-01"
    			);
    		
    		$data[] = array(
    				"title"=>"Apple 苹果 iPhone 6s Plus (A1699) 16G 玫瑰金色 移动联通电信4G 全网通手机",
    				"pic"=>"http://d8.yihaodianimg.com/N05/M03/D4/1E/CgQI0lYEBwWAQIvJAAFyostaOYY12501_80x80.jpg",
    				"link"=>"#1",
    				"date"=>"2015-12-01"
    			);
    		
    		$data[] = array(
    				"title"=>"Apple 苹果 iPhone 6s Plus (A1699) 16G 玫瑰金色 移动联通电信4G 全网通手机",
    				"pic"=>"http://d8.yihaodianimg.com/N05/M03/D4/1E/CgQI0lYEBwWAQIvJAAFyostaOYY12501_80x80.jpg",
    				"link"=>"#1",
    				"date"=>"2015-12-01"
    			);
    		
    		$data[] = array(
    				"title"=>"Apple 苹果 iPhone 6s Plus (A1699) 16G 玫瑰金色 移动联通电信4G 全网通手机",
    				"pic"=>"http://d8.yihaodianimg.com/N05/M03/D4/1E/CgQI0lYEBwWAQIvJAAFyostaOYY12501_80x80.jpg",
    				"link"=>"#1",
    				"date"=>"2015-12-01"
    			);
    		
    		$data[] = array(
    				"title"=>"Apple 苹果 iPhone 6s Plus (A1699) 16G 玫瑰金色 移动联通电信4G 全网通手机",
    				"pic"=>"http://d8.yihaodianimg.com/N05/M03/D4/1E/CgQI0lYEBwWAQIvJAAFyostaOYY12501_80x80.jpg",
    				"link"=>"#1",
    				"date"=>"2015-12-01"
    			);
    		
    		$data[] = array(
    				"title"=>"Apple 苹果 iPhone 6s Plus (A1699) 16G 玫瑰金色 移动联通电信4G 全网通手机",
    				"pic"=>"http://d8.yihaodianimg.com/N05/M03/D4/1E/CgQI0lYEBwWAQIvJAAFyostaOYY12501_80x80.jpg",
    				"link"=>"#1",
    				"date"=>"2015-12-01"
    			);
    		
    		
    		if ($page > 3){
    			$data = [];
    		}
    		
    		ajax_return_ok($data);
    	}
    	 
    	return $this->fetch();
    }
    
      
    
    
}
